<?php include(__SITE_PATH.DS.'views/include/head.php'); ?>
<body>
<div id="wrappage">
    <div id="header" class="left">
        <?php include(__SITE_PATH.DS.'views/include/header.php');?>
    </div><!--End div.header-->
    <div id="container" class="left">
        <?php include(__SITE_PATH.DS.'views/include/sidebar.php');?>
        <div class ="content-right right">
			<div class="productview">
				<?php if(isset($notice)) echo '<div class="error"><p>'.$notice.'</p></div>';?>
				<?php if(isset($sach) && $sach->num_rows != 0){?>
                <div class="sliderwrapper">
                    <div class="contentdiv">
					<?php $i=0;?>
                    <?php while($row = $sach->fetch_array()){?>
						<?php $i++;?>
                        <div class="glidercol">
                            <ul>
                                <li>
                                    <a href="<?php echo Core::site_url('quanlysach/sach/'.$row['BookID'].'/'.ham_loc_dau($row['BookTitle']));?>" ><img class="imgpro" src="<?php echo BASE_URL?>upload/hinh-anh-sach/<?php echo $row['BookImg'];?>" title="<?php echo $row['BookTitle'];?>" alt="<?php echo $row['BookTitle'];?>"/></a>
                                </li>
                                <li><span class="namepro"><?php echo $row['BookTitle'];?></span></li>
                                <li class="Pricenew"><?php echo convertMoneyVND($row['BookPrice']);?></li>
                            </ul>
                        </div>
						<?php if($i%4==0){}else{?><div class="divider"></div><?php }?>
                    <?php }?>
                    </div>
                </div>
				<?php }?>
			</div>
        </div>
    </div><!--End div.container-->
    <div class="clear"></div>
    <div id="footer" class="left">
        <?php include(__SITE_PATH.DS.'views/include/footer.php');?>
    </div><!--End div.footer-->
</div><!--End div#wrappage-->
</body>
</html>